package com.snake.repositories;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.text.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.snake.mapper.PermissionUserMapper;
import com.snake.models.PermissionUser;


@Service
public class PermissionUserServiceImpl implements PermissionUserService {
	@Autowired
	private PermissionUserMapper permissionUserMapper;
	@Override
	public PermissionUser add(PermissionUser t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PermissionUser delete(PermissionUser t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PermissionUser update(PermissionUser t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PermissionUser getById(int id) {
		// TODO Auto-generated method stub
		Map<String, Object> params=new HashMap<String, Object>();
		params.put("userId", id);
		PermissionUser byId = permissionUserMapper.getById(params);
		return byId;
	}

	@Override
	public List<PermissionUser> getByList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return null;
	}

	
}
